home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7880 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: nntphost.st-and.ac.uk!bd
  2. From: bd@davaar.st-and.ac.uk (Brian Duff)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: HELP! Please! Why doesn't this work
  5. Date: 29 Feb 1996 14:53:45 GMT
  6. Organization: University of St. Andrews
  7. Message-ID: <BD.96Feb29145345@davaar.st-and.ac.uk>
  8. References: <Pine.ULT.3.91a.960215131933.614A-100000@red5.cac.washington.edu>
  9.     <GEORG.96Feb23192440@acds14.physik.rwth-aachen.de>
  10. Reply-To: bd@st-and.ac.uk
  11. NNTP-Posting-Host: davaar.dcs.st-and.ac.uk
  12. In-reply-to: georg@acds14.physik.rwth-aachen.de's message of 23 Feb 1996 18:24:40 GMT
  13.  
  14.  
  15.    In article <Pine.ULT.3.91a.960215131933.614A-100000@red5.cac.washington.edu> "Aaron T. Baldie" <atb@cac.washington.edu> writes:
  16.  
  17.    >...
  18.    >     solution_array = (char **) malloc(size);   
  19.  
  20.      This should read 
  21.  
  22.        solution_array = (char**)malloc(size * sizof(char*));
  23.    >...
  24.  
  25.  
  26. if (pedantic_mode)
  27. {
  28.   solution_array = (char**)malloc(size * sizeof(char*));
  29.                       ^^^
  30. }
  31. else
  32. {
  33.   ;
  34. }
  35.  
  36.  
  37.  
  38. ;)
  39.  
  40. Brian
  41.  
  42. http://www-2nd-cs.dcs.st-and.ac.uk/~bd/
  43.  
  44.  
  45. --
  46. --
  47. I am Pentium of Borg.  You will be approximated, accuracy is futile!
  48.  
  49. |>     Brian Duff - University Of St. Andrews     |\
  50. |>     http://www-2nd-cs.dcs.st-and.ac.uk/~bd     |/
  51.